-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Open in Editor support for template paths #2198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
5102676
to
543c143
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it's possible to detect that the project is running in vscode and we could avoid the setting altogether?
Ah, that's a good reference. I like the idea of having a magic-ish value/constant to specify rather than asking them to write in a lambda for a setting. |
33d4005
to
99f0190
Compare
99f0190
to
418e706
Compare
@tim-schilling updated to use a constant to specify the editor URL format. Test failures appear unrelated. |
f844db5
to
bda95cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Marking it as Request Changes to ask for the tests. I think tests that cover get_editor_url
and the new get_stats()
of TemplatesPanel
would be great.
The other stretch thing would be to add is a reference to the new setting in the TemplatesPanel documentation.
I just added the requested tests and updated the docs format. I would prefer to hold off with documenting this as something that's mostly useful for the requests panel because I believe it's going to be useful in other places too (like stacktraces). |
That's fair about mentioning the editor setting the templates panel documentation. I think we do want to have this mentioned in the changes.rst file so folks get alerted to the change in the next release. |
Done! |
5d4d274
to
943037d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with these changes. I'd like @matthiask to agree (I don't want to merge a new feature unilaterally). He's out on holiday currently, so it may be a few weeks.
Thank you @federicobond for your patience and perseverance! |
Description
This adds a setting to configure an Open in editor URL when you click on a template path. Makes it easier to jump directly to the template and edit. Can develop it further and/or add tests if there is interest in the feature.
Checklist:
docs/changes.rst
.